package com.rbac.api.controller.request;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Size;

///菜单增加
public class PostMenuAddRequest {


    ///菜单父级编号：默认主菜单0
    @NotEmpty(message = "post.common.parent.no.not.null")
    @Size(max = 32,message = "post.common.parent.no.length.fail")
    private String parentNo;
    ///菜单名称
    @NotEmpty(message = "post.common.menu.name.not.null")
    @Size(max = 60,message = "post.common.menu.name.length.fail")
    private String menuName;
    ///菜单地址
    @Size(max = 250,message = "post.common.menu.address.length.fail")
    private String menuAddress;
    ///菜单排序
    private Integer menuSort;


    public String getParentNo() {
        return parentNo;
    }

    public void setParentNo(String parentNo) {
        this.parentNo = parentNo;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuAddress() {
        return menuAddress;
    }

    public void setMenuAddress(String menuAddress) {
        this.menuAddress = menuAddress;
    }

    public Integer getMenuSort() {
        return menuSort;
    }

    public void setMenuSort(Integer menuSort) {
        this.menuSort = menuSort;
    }

    @Override
    public String toString() {
        return "PostMenuAddRequest{" +
                "parentNo='" + parentNo + '\'' +
                ", menuName='" + menuName + '\'' +
                ", menuAddress='" + menuAddress + '\'' +
                ", menuSort=" + menuSort +
                '}';
    }
}
